package org.news.web.service;

import org.news.web.domain.Subscriptions;
import org.news.web.domain.vo.SubscriptionsVo;
import org.news.web.domain.bo.SubscriptionsBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 订阅功能Service接口
 *
 * @author Gu Ci
 * @date 2024-04-21
 */
public interface ISubscriptionsService {

    /**
     * 查询订阅功能
     */
    SubscriptionsVo queryById(Long subscriptionId);

    /**
     * 查询订阅功能列表
     */
    TableDataInfo<SubscriptionsVo> queryPageList(SubscriptionsBo bo, PageQuery pageQuery);

    /**
     * 查询订阅功能列表
     */
    List<SubscriptionsVo> queryList(SubscriptionsBo bo);

    /**
     * 新增订阅功能
     */
    Boolean insertByBo(SubscriptionsBo bo);

    /**
     * 修改订阅功能
     */
    Boolean updateByBo(SubscriptionsBo bo);

    /**
     * 校验并批量删除订阅功能信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    Boolean isSub(SubscriptionsBo subscriptionsBo);
}
